import org.junit.Test;

/**
 * @author wuhan
 * @date 2019/9/17 21:08
 */

class ThreadDemo extends java.lang.Thread {
    @Override
    public void run() {
        for (int i = 0; i < 60; i++) {
            System.out.printf("test_run-----+"+i);
        }
    }
}


public class Juc {
    @Test
    public void test1(){
        ThreadDemo threadDemo1 = new ThreadDemo();
        ThreadDemo threadDemo2 = new ThreadDemo();
        threadDemo1.start();
        threadDemo2.start();

        for (int i = 0; i < 60; i++) {
            System.out.printf("main run "+i);
        }
    }
}
